﻿using System;
using System.Collections.Generic;

using AppPriceLive.Entities.Utils;
using AppPriceLive.Entities.Models;
using AppPriceLive.DAL;
using AppPriceLive.Common;

namespace AppPriceLive.Biz
{
    public class VCurrencyListInfoService
    {
        public virtual VCurrencyListInfoInfo VCurrencyListInfoSelectWithCurrenListId(int? currenListId)
        {
            try
            {
                return new VCurrencyListInfoDAO().VCurrencyListInfoSelectWithCurrenListId(currenListId);
            }
            catch (Exception ex)
            {
                Logger.Error("AppPriceLive.Biz.VCurrencyListInfo - VCurrencyListInfoSelectWithCurrenListId", ex);
                throw;
            }
        }

        public List<VCurrencyListInfoInfo> VCurrencyListInfoSelectWithCurrencyGroupId(int? currencyGroupId)
        {
            try
            {
                return new VCurrencyListInfoDAO().VCurrencyListInfoSelectWithCurrencyGroupId(currencyGroupId);
            }
            catch (Exception ex)
            {
                Logger.Error("AppPriceLive.Biz.VCurrencyListInfo - VCurrencyListInfoSelectWithCurrencyGroupId", ex);
                throw;
            }

        }

        public List<VCurrencyListInfoInfo> VCurrencyListInfoSelectAll()
        {
            try
            {
                return new VCurrencyListInfoDAO().VCurrencyListInfoSelectAll();
            }
            catch (Exception ex)
            {
                Logger.Error("AppPriceLive.Biz.VCurrencyListInfo - VCurrencyListInfoSelectAll", ex);
                throw;
            }

        }
    }
}
